import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '姓名',
    align: "center",
    dataIndex: 'realName'
  },
  {
    title: '身份证号码',
    align: "center",
    dataIndex: 'identityCard'
  },
  {
    title: '手机号',
    align: "center",
    dataIndex: 'phone'
  },
  {
    title: '邮箱',
    align: "center",
    dataIndex: 'email'
  },
  {
    title: '头像',
    align: "center",
    dataIndex: 'avatar',
    customRender: render.renderImage,
  },
  {
    title: '身份证正面',
    align: "center",
    dataIndex: 'front',
    customRender: render.renderImage,
  },
  {
    title: '身份证反面',
    align: "center",
    dataIndex: 'back',
    customRender: render.renderImage,
  },
  {
    title: '所属企业',
    align: "center",
    dataIndex: 'companyId_dictText'
  },
  {
    title: '备注',
    align: "center",
    dataIndex: 'remark'
  },
  {
    title: '认证状态',
    align: "center",
    dataIndex: 'status_dictText'
  },
  {
    title: '创建时间',
    align: "center",
    sorter: true,
    dataIndex: 'createTime'
  },
];

// 高级查询数据
export const superQuerySchema = {
  realName: {title: '姓名',order: 0,view: 'text', type: 'string',},
  identityCard: {title: '身份证号码',order: 1,view: 'text', type: 'string',},
  phone: {title: '手机号',order: 2,view: 'text', type: 'string',},
  email: {title: '邮箱',order: 3,view: 'text', type: 'string',},
  avatar: {title: '头像',order: 4,view: 'image', type: 'string',},
  front: {title: '身份证正面',order: 5,view: 'image', type: 'string',},
  back: {title: '身份证反面',order: 6,view: 'image', type: 'string',},
  companyId: {title: '所属企业',order: 7,view: 'sel_search', type: 'string',dictTable: "base_company", dictCode: 'id', dictText: 'company_name',},
  remark: {title: '备注',order: 8,view: 'textarea', type: 'string',},
  status: {title: '认证状态',order: 9,view: 'number', type: 'number',dictCode: 'dict_person_status',},
  createTime: {title: '创建时间',order: 10,view: 'datetime', type: 'string',},
};
